var express = require('express');
var router = express.Router();
const {user,store} =require("../model/models")
/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });
router.get("/getlist",async(req,res)=>{
  let data = await store.find()
  res.send({
    code:'200',
    data:data
  })
})

module.exports = router;
